package com.stagechatserver.chatserver.controller;//package com.yxl.controller;
//
//import com.stagecommon.common.pojo.ChatList;
//import com.stagecommon.common.pojo.RespBean;
//import com.yxl.service.ChatListService;
//import com.stagecommon.common.vo.ChatListVo;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
///**
// * @author: yxl
// * @since: 2022-03-19
// **/
//@Slf4j
//@RestController
//@RequestMapping("/chatList")
//public class ChatListController {
//    @Autowired
//    private ChatListService chatListService;
//
//    @PostMapping("saveList")
//    public RespBean<Long> saveList(@RequestBody ChatList chatList){
//        return chatListService.selectChatListByChatFromIdAndChatToId(chatList) == 1 ? RespBean.operationSuccess("快去聊天吧",200,1L) : RespBean.operationSuccess("添加成功",200,0L);
//    }
//
//    @PostMapping("/getChatList")
//    public RespBean<List<ChatListVo>> getChatListVo(@RequestBody ChatList chatList){
//        return RespBean.operationSuccess(200,"success", chatListService.selectAllByChatFromId(chatList.getChatFromId()));
//    }
//}
